﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Department/Master.Master" AutoEventWireup="true"
    CodeBehind="SetTemporaryRepresentative.aspx.cs" Inherits="logicunivesityinventorystore.Department.SetTemporaryRepresentative" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
      <script type="text/javascript">
          function setEnd(sender, args) {        
              var myDate = sender._selectedDate;
              var myCal = $find("cal1");
              myCal.set_startDate(myDate);
          }
    </script>
      <style type="text/css">
          .style1
          {
              height: 22px;
          }
      </style>
    </asp:Content>

<asp:Content ID="Content6" runat="server" ContentPlaceHolderID="ContentPlaceHolder2">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <h1>Set Temporary Representative:</h1>
    <div>
        <table style="text-align:justify; width: 630px;">
            <caption>
                <tr>
                    <td>
                        <br />
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        From
                    </td>
                    <td class="style1">
                        <asp:TextBox ID="txtFromDate" runat="server">-Select Date-</asp:TextBox>
                        <asp:CalendarExtender ID="CalendarExtender1" TargetControlID="txtFromDate" 
                            Format="dd/MM/yyyy" BehaviorID="cal2" runat="server" 
                            OnClientDateSelectionChanged="setEnd">
                        </asp:CalendarExtender>
                    </td>
                    <td class="style1">
                        To
                    </td>
                    <td class="style1">
                        <asp:TextBox ID="txtToDate" runat="server">-Select Date-</asp:TextBox>
                        <asp:CalendarExtender ID="CalendarExtender2" Format="dd/MM/yyyy" 
                            BehaviorID="cal1" TargetControlID="txtToDate" runat="server">
                        </asp:CalendarExtender>
                    </td>
                    <tr>
                        <td>
                            <br />
                        </td>
                    </tr>
                </tr>
                <tr>
                    <td>
                        Change To
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlEmpName" runat="server" 
                            DataSourceID="ObjectDataSource1" DataTextField="EmployeeName" 
                            DataValueField="EmployeeID">
                        </asp:DropDownList>
                        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                            SelectMethod="SearchEmployees" TypeName="BusinessLogicLayer.DepartmentFacade">
                            <SelectParameters>
                                <asp:SessionParameter DefaultValue="" Name="empID" SessionField="UserName" 
                                    Type="String" />
                            </SelectParameters>
                        </asp:ObjectDataSource>
                    </td>
                </tr>
                <tr>
                    <td>&nbsp;</td>  
                    <td></td>                 
                    <td></td>
                    <td>
                        <asp:Button ID="btnSet" runat="server" Text="Set" Width="78px" 
                            onclick="btnSet_Click" CssClass="ButtonStyle" />
                        <asp:ConfirmButtonExtender ID="btnSet_ConfirmButtonExtender" runat="server" 
                            ConfirmText="Are you sure you want to change?" Enabled="True" TargetControlID="btnSet">
                        </asp:ConfirmButtonExtender>
                    </td>
                </tr>
            </caption>
        </table>
    </div>
    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content7" runat="server" 
    contentplaceholderid="ContentPlaceHolder3">
              
                </asp:Content>
<asp:Content ID="Content8" runat="server" 
    contentplaceholderid="ContentPlaceHolder4">
     
                </asp:Content>

